<?php class Form_EnoriaForm extends Form_Custom_General {
        public function init() {

		$en_id = $this->createElement("hidden", "en_id")
                     ->setRequired(FALSE)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter id")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"form-control","placeholder"=>"Id"));
                     $this->addElement($en_id);

		$en_identity_code = $this->createElement("text", "en_identity_code")
                     ->setRequired(TRUE)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter identity code")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"form-control","placeholder"=>"Identity Code"));
                     $this->addElement($en_identity_code);

		$en_name = $this->createElement("text", "en_name")
                     ->setRequired(TRUE)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter name")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"form-control","placeholder"=>"Name"));
                     $this->addElement($en_name);

		$en_title = $this->createElement("text", "en_title")
                     ->setRequired(TRUE)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter title")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"form-control","placeholder"=>"Title"));
                     $this->addElement($en_title);

		$area_id = $this->createElement("select", "area_id")
                     ->setRequired(TRUE)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter area")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"form-control select2","placeholder"=>"Area"));
                     $this->addElement($area_id);

                $en_lang_id = $this->createElement("select", "en_lang_id")
                                    ->setRequired(TRUE)
                                    ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter language")))
                                    ->addFilters(array(
                                        new Zend_Filter_StringTrim(),
                                    ))
                                    ->setAttribs(Array("class"=>"form-control select2","placeholder"=>"Language"));
                $this->addElement($en_lang_id);
                     
		$en_status = $this->createElement("select", "en_status")
                     ->setRequired(TRUE)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter status")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"form-control","placeholder"=>"Status"));
                     $this->addElement($en_status);

        	 }
        }?>